gl: Set legacy bit depending on OpenGL version
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 21 Oct 2016 20:21:39 +0000 (21:21 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Sat, 22 Oct 2016 01:40:08 +0000 (02:40 +0100)
commit31c05771e957f2f54fb197a391b63e6ef3394a26
tree2528e0236a73fb0fc505f55088d795ea0baef722
parent8129d5b5932f5fe0da70ec4210a6e3d2d1dc5737
gl: Set legacy bit depending on OpenGL version

GDK defaults to asking for an OpenGL 3.2 Core Profile, but if we get a
legacy profile from the underlying windowing system, the OpenGL version
will be fixed to 3.0. If that happens, we need to set the legacy bit on
the GdkGLContext, since that bit will be used to determine the version
and type of GLSL shaders that will be used by application and toolkit
code alike.
gdk/gdkglcontext.c